package com.pureut.equipment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.equipment.domain.EquipmentKnowledge;
import com.pureut.equipment.domain.dto.EquipmentKnowledgeDto;
import com.pureut.equipment.domain.vo.EquipmentKnowledgeVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Param
 * @Date
 * @Author hl
 **/
@Mapper
public interface EquipmentKnowledgeMapper extends BaseMapper<EquipmentKnowledge> {

    /**
     * 设备知识库列表
     *
     * @param equipmentKnowledgeVo 接受类
     * @return 设备知识库列表
     */
    List<EquipmentKnowledgeDto> selectKnowledgeList(EquipmentKnowledgeVo equipmentKnowledgeVo);

    List<Map<String, String>> selectKnowledgeById1();

    /**
     * 根据维修单号查询
     */
    EquipmentKnowledgeDto selectKnowledgeByCode(String repairCode);

    /**
     * 保存知识库信息
     */
    int saveData(EquipmentKnowledge equipmentKnowledge);
}
